package cn.b.training.baby_education_training.service;

import cn.b.training.baby_education_training.entity.Encyclo;
import cn.b.training.baby_education_training.service.dto.EncycloDto;
import cn.b.training.baby_education_training.service.dto.EncyclopediaDto;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @program: baby_education_training
 * @description
 * @author: wuying
 * @create: 2022-12-02 14:37
 **/
public interface EncycloService {
    boolean addEncyclo(EncycloDto encycloDto);
    /**
     * 通过id查询百科信息
     * @param id id
     * @return
     */
    EncyclopediaDto getEncycloById(Long id);

    Boolean deleteEncycloById(Long id);

    List<Encyclo> getEncycloByTitle(String encycloTitle);

    /**
     * 获取全部百科列表
     * @param page 页码
     * @param size 页长
     * @return Page<UserAccount> 百科分页列表
     */
    Page<Encyclo> getAllEncyclos(Integer page, Integer size);
}
